/**
 * 
 * 打印棋盘
 * 
*/

public class PrintBoard {
    public static void main(String[] args) {
        
        for(int i = 0; i < 17; i++){

            for(int j = 0; j < 17; j++){
                if (i == 0 && j == 0){
                    System.out.print("  ");
                }else if(i == 0 && j != 0){
                    //System.out.print(j-1);
                    System.out.printf(Integer.toHexString(j-1) + " ");
                }else if(i != 0 && j == 0){
                    //System.out.print(i-1);
                    System.out.printf(Integer.toHexString(i-1) + " ");
                }else{
                    System.out.print("+ ");
                }
            }
            System.out.println();
        }

    }
}
